using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace KFGame
{

    public class KFScene : IKFEvent
    {

        [Tooltip("上一个场景")]
        public string preScene;
        [Tooltip("下一个场景")]
        public string nextScene;


        /// <summary>
        /// 启动场景
        /// </summary>
        /// <param name="sceneName"></param>
        public void playScene(string sceneName)
        {
            KF.kf.sceneManager.LoadScene(sceneName);
        }

        /// <summary>
        /// 启动下一个场景
        /// </summary>
        public void playNextScene()
        {
            playScene(nextScene);
        }
        /// <summary>
        /// 启动上一个场景
        /// </summary>
        public void playPreScene()
        {
            playScene(preScene);
        }

    }

}